package tree;

/**
 * Number Node.
 * @author Natchanon Hongladaromp
 *
 */
public class NumberNode implements Tree
{
	private int number;

	/**
	 * Constructs for this node.
	 * @param value
	 */
	public NumberNode(int value)
	{
		this.number = value;
	}

	@Override
	public double value()
	{
		return number;
	}

	@Override
	public String toString(int order)
	{
		return toString();
	}

	@Override
	public String toString()
	{
		return number + "";
	}

}
